﻿using Apps.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Apps.DAL.HC
{
    public partial class HC_EXAMINE_Repository:DbContext<HC_EXAMINE>
    {
        public bool DoAdd(HC_EXAMINE examineModel)
        {
            return Db.Insertable(examineModel).ExecuteCommand() > 0;
        }

        public HC_EXAMINE Get_EXAMINE(string formId)
        {
            return Db.Queryable<HC_EXAMINE>().First(it => it.FORMID == formId); //没有返回Null //select top 1 * from Student where id=1
        }
    }
}
